package service

import (
	"net/http"

	"akexc.com/gin-template/dto"
	"akexc.com/gin-template/response"
	"akexc.com/gin-template/util"
	"github.com/gin-gonic/gin"
)

func Register(user dto.RegisterDto) response.ResponseBody {
	var res = response.ResponseBody{
		HttpStatus: http.StatusOK,
		Code:       response.SUCCESS,
		Msg:        response.OK,
		Data:       nil,
	}

	res.Data = gin.H{
		"e-mail":   util.HideEmail(user.Email),
		"password": user.Password,
	}

	return res
}

func Login(username string, password string) {

}
